import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
	routes: [
		{
			path: '/',
			redirect: '/login'
		},

		{
			path: '/login',
			component: () => import( /* webpackChunkName: "login" */ '../components/page/Login.vue'),
			meta: {
				title: '登录'
			}
		},
	
		{
			path: '/home',
			component: () => import( /* webpackChunkName: "register" */ '../components/page/Home.vue'),
			meta: {
				title: '主页'
			}
		},
		
	]
});
